import request from '@/axios'
import type { ListParams, Response } from '@/api/api'

export interface Row {
  id?: number
  name: string
  money_all: string
  money: string
  money_withdraw: string
}
// 司机账户列表
export const getListApi = (data: ListParams): Promise<Response<Row>> => {
  return request.post({ url: '/account/driver/list', data })
}

// 司机账户提现
export const withdrawApi = (data): Promise<Response<Row>> => {
  return request.post({ url: '/account/driver/withdraw', data })
}
